package jianli;

// 定义老师类继承Person
public class Teacher extends Person {
    public Teacher(String name, int age, String address) {
        super(name, age, address);
    }

    @Override
    public void info() {
        System.out.println("我是一名老师，以下是我的个人信息：");
        super.info();
    }
}
